/* 
* File: vector_capacity.cpp
* 测试用例修改自 http://www.cplusplus.com/reference/stl/vector/capacity/
* 编译命令：
* 	c++ -Wall -g  -I ../Include/ vector_capacity.cpp -o vector_capacity 
* 在这里假设所有的所需的头文件放在../Include里面
*/
// comparing size, capacity and max_size
#include <iostream>
//#include <vector>
#define vector Vector
#include "Vector.h"
using namespace std;

int main ()
{
  vector<int> myvector;

  // set some content in the vector:
  for (int i=0; i<100; i++) myvector.push_back(i);

  cout << "size: " << (int) myvector.size() << "\n";
  cout << "capacity: " << (int) myvector.capacity() << "\n";
  cout << "max_size: " << (int) myvector.max_size() << "\n";
  return 0;
}
